<template>
  <view :style="themeColor">
    <view class="page">
      <fu-custom bgColor="bg-white" :isBack="true" :isBottom="true">
        <block slot="content">发布记录</block>
      </fu-custom>
      <!---flex布局flex布局开始-->
      <view class="flex benben-flex-layout flex-wrap align-center">
        <template v-for='(item,key0) in dataList'>
          <view class='flex flex-direction flex-wrap align-stretch fabujilu_fd1_0' @tap.stop="handleJumpDiy"
            data-type="navigateTo" :data-url="`/pages/sy/fabuxiangqing/fabuxiangqing?id=${item.aid}`" :key='key0'>
            <view class='flex flex-wrap align-center'>
              <image class='fabujilu_fd1_0_c0_c0' mode="aspectFill" :src='item.user_avatar'></image>
              <view class='flex flex-direction flex-wrap align-stretch fabujilu_fd1_0_c0_c1'>
                <text class='fabujilu_fd1_0_c0_c1_c0'>{{item.user_nickname}}</text>
                <text class='fabujilu_fd1_0_c0_c1_c1'>{{item.create_time}}</text>
              </view>
              <view class='flex flex-wrap align-center' @tap.stop="popupShow1699495324241=true">
                <image class='fabujilu_fd1_0_c0_c2_c0' mode="aspectFit" :src='STATIC_URL+"508.png"'></image>
              </view>
            </view>
            <view class='fabujilu_fd1_0_c1'>
              <text class='fabujilu_fd1_0_c1_c0'>{{item.type_name}}</text>
              <text class='fabujilu_fd1_0_c1_c1'>{{item.content}}</text>
            </view>
            <view class='flex flex-wrap align-center fabujilu_fd1_0_c2'>
              <view class='flex flex-wrap align-center'>
                <image class='fabujilu_fd1_0_c2_c0_c0' mode="aspectFill" :src='item.images'></image>
              </view>
            </view>
          </view>
        </template>
        <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
          :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
      </view>

      <!---flex布局flex布局结束-->
      <benben-popup v-model="popupShow1699495324241" :mask="true" :mask-close-able="false" mode='center'>
        <!---删除flex布局开始-->
        <view class="flex flex-direction flex-wrap align-center fabujilu_flex_2"
          @tap.stop="popupShow1650940432200=true">
          <text class='fabujilu_fd2_0'>提示</text>
          <text class='fabujilu_fd2_1'>确认删除该记录？</text>
          <view class='flex flex-wrap align-center fabujilu_fd2_2'>
            <button class='fabujilu_fd2_2_c0' @tap.stop="popupShow1699495324241=false" open-type="contact">取消</button>
            <button class='fabujilu_fd2_2_c1' @tap.stop="getlp6577ef4923e00Func()" open-type="contact">确定</button>
          </view>
        </view>

        <!---删除flex布局结束-->

      </benben-popup>


    </view>
  </view>
</template>
<script>
  import pagingList from '@/common/mixin/paging_list.js';
  import {
    validate
  } from '@/common/utils/validate.js'
  export default {
    components: {},
    mixins: [pagingList],

    data() {
      return {
        "popupShow1699495324241": false,
        "minixPagingListsApi": "",
        "pageingListApiMethod": "",
        "allowOnloadGetList": false,
        "types": "",
        "dataList": [],
        "id": ""
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      this.getlv656fec5a78d8aFunc()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //我的发布烦恼列表
      getlv656fec5a78d8aFunc() {
        this.minixPagingListsApi = global.apiUrls.post656fec5a78d8a;
        this.pageingListApiMethod = 'post';
        this.allowOnloadGetList = false;
        this.pagingListPostDataContent = {}
        this.listData = [];
        this.dataList = this.listData;
        this.pagingListToggle();

      },
      //删除烦恼
      async getlp6577ef4923e00Func() {
        //请求方法
        //数据验证

        let data6577ef4923e00 = await this.$api.post(global.apiUrls.post6577ef4923e00, {
          aid: this.id
        });

        if (data6577ef4923e00.data.code != 1) {
          this.$message.info(data6577ef4923e00.data.msg);
          return
        }



      },
      pagingListPostData() {
        return this.pagingListPostDataContent
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: #F8F8F8;
    background-size: 100% auto;
  }

  .fabujilu_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .fabujilu_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 500;
    color: #333333;
    line-height: 0rpx;
  }

  .fabujilu_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .fabujilu_fd0_0_c0 {
    width: 120rpx;
  }

  .fabujilu_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .fabujilu_fd1_0_c2_c0_c0 {
    border-radius: 16rpx;
    margin: 24rpx 10rpx 0rpx 0rpx;
    width: 156rpx;
    height: 156rpx;
  }

  .fabujilu_fd1_0_c2 {
    margin: 0rpx -10rpx 0rpx 0rpx;
  }

  .fabujilu_fd1_0_c1_c1 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 400;
    margin: 0rpx 0rpx 0rpx 12rpx;
  }

  .fabujilu_fd1_0_c1_c0 {
    background: #FFF3FC;
    width: 64rpx;
    height: 32rpx;
    line-height: 32rpx;
    background-size: 100% auto;
    color: rgba(193, 99, 206, 1);
    font-size: 22rpx;
    padding: 5rpx 8rpx 5rpx 8rpx;
    border-radius: 8rpx;
  }

  .fabujilu_fd1_0_c1 {
    padding: 8rpx 8rpx 0rpx 8rpx;
  }

  .fabujilu_fd1_0_c0_c2_c0 {
    width: 24rpx;
    height: 28rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .fabujilu_fd1_0_c0_c1_c1 {
    color: #999999;
    font-size: 24rpx;
    font-weight: 500;
    margin: 12rpx 0rpx 0rpx 0rpx;
  }

  .fabujilu_fd1_0_c0_c1_c0 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 700;
  }

  .fabujilu_fd1_0_c0_c1 {
    width: 500rpx;
  }

  .fabujilu_fd1_0_c0_c0 {
    width: 88rpx;
    height: 88rpx;
    border-radius: 100rpx;
    margin: 0rpx 24rpx 0rpx 0rpx;
  }

  .fabujilu_fd1_0 {
    background: var(--benbenbgColor1);
    padding: 24rpx 24rpx 24rpx 24rpx;
    background-size: 100% auto;
    width: 702rpx;
    border-radius: 16rpx;
    margin: 24rpx 24rpx 0rpx 24rpx;
    position: relative;
    z-index: 0;
  }

  .fabujilu_flex_2 {
    background: #fff;
    width: 540rpx;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
  }

  .fabujilu_fd2_2_c1 {
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    background: var(--benbenbgColor1);
    line-height: 110rpx;
    border-radius: 0rpx 0rpx 16rpx 0rpx;
    font-size: 32rpx;
    color: var(--benbenFontColor5);
    width: 270rpx;
  }

  .fabujilu_fd2_2_c0 {
    border-top: 1px solid #eee;
    background: #fff;
    line-height: 110rpx;
    border-radius: 0rpx 0rpx 0rpx 16rpx;
    font-size: 32rpx;
    color: rgba(153, 153, 153, 1);
    padding: 0rpx 103rpx 0rpx 103rpx;
  }

  .fabujilu_fd2_2 {
    margin: 37rpx 0rpx 0rpx 0rpx;
  }

  .fabujilu_fd2_1 {
    line-height: 44rpx;
    font-size: 32rpx;
    font-weight: 500;
    color: #333333;
  }

  .fabujilu_fd2_0 {
    font-size: 36rpx;
    font-weight: 800;
    line-height: 44rpx;
    color: #333333;
    margin: 40rpx 0rpx 40rpx 0rpx;
  }
</style>